﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        <LinearGradientBrush x:Key="border_brush" EndPoint="1,1" StartPoint="0.5,0">
		<GradientStop Color="#FF0000FF" Offset="0"/>
		<GradientStop Color="#FF000000" Offset="1"/>
	</LinearGradientBrush>
    <Style TargetType="{x:Type Border}">
    	<Setter Property="BorderBrush" Value="{DynamicResource border_brush}"/>
    	<Setter Property="BorderThickness" Value="3,3,3,3"/>
    </Style>
	<LinearGradientBrush x:Key="blue_button" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#FF0000FF" Offset="0.0"/>
		<GradientStop Color="#FF000000" Offset="1.0"/>
		<GradientStop Color="#FF00007C" Offset="0.564"/>
	</LinearGradientBrush>
	<BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
    <Style TargetType="{x:Type GroupBox}">
		<Setter Property="BorderBrush" Value="#FF000083"/>
		<Setter Property="BorderThickness" Value="2,2,2,2"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type GroupBox}">
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="6"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="*"/>
							<ColumnDefinition Width="6"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="*"/>
							<RowDefinition Height="6"/>
						</Grid.RowDefinitions>
						<Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4"/>
						<Border x:Name="Header" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Padding="3,1,3,0" BorderBrush="{x:Null}">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True"/>
						</Border>
						<ContentPresenter Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2"/>
						<Border Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
							<Border.OpacityMask>
								<MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
									<Binding Path="ActualWidth" ElementName="Header"/>
									<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
									<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
								</MultiBinding>
							</Border.OpacityMask>
							<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
								<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ClipToBounds" Value="True"/>
		<Setter Property="Foreground" Value="#FF000083"/>
		<Setter Property="FontSize" Value="14"/>
		<Setter Property="FontWeight" Value="Bold"/>
	</Style>
    <SolidColorBrush x:Key="ListBorder" Color="#828790"/>
    <Style TargetType="{x:Type ListBox}">
    	<Setter Property="Background" Value="#FF000000"/>
    	<Setter Property="BorderBrush" Value="#FF000083"/>
    	<Setter Property="BorderThickness" Value="4,4,4,4"/>
    	<Setter Property="Foreground" Value="#FFFFFFFF"/>
    	<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
    	<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    	<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
    	<Setter Property="VerticalContentAlignment" Value="Center"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type ListBox}">
    				<Border x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" CornerRadius="3,3,3,3">
    					<ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
    						<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    					</ScrollViewer>
    				</Border>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    					</Trigger>
    					<Trigger Property="IsGrouping" Value="true">
    						<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
    	<GradientStop Color="white" Offset="0"/>
    	<GradientStop Color="#B8E2F9" Offset="0.5"/>
    	<GradientStop Color="#B0DFF8" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="HorizontalSliderThumbHoverBorder" Color="#3C7FB1"/>
    <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
    	<GradientStop Color="#B8E4FA" Offset="0.25"/>
    	<GradientStop Color="#5EB4E3" Offset="0.5"/>
    	<GradientStop Color="#4C8BB4" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="HorizontalSliderThumbPressedBorder" Color="#2C628B"/>
    <Geometry x:Key="SliderThumbDisabledGeometry">M -5,-10.5 L 5,-10.5 L 5,10.5 L -5,10.5 Z</Geometry>
    <Geometry x:Key="SliderPointedThumbDisabledGeometry">M 4.5,-8.5 L -4.5,-8.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
    <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackgroundInverted" EndPoint="0,0" StartPoint="0,1">
    	<GradientStop Color="White" Offset="0"/>
    	<GradientStop Color="#F0EFEF" Offset="0.4"/>
    	<GradientStop Color="#D6D5D5" Offset=".8"/>
    </LinearGradientBrush>
    <Geometry x:Key="SliderPointedThumbOuterBorderGeometry">M 4.5,-7.5 A 1 1 0 0 0 3.5,-8.5 L -3.5,-8.5 A 1 1 0 0 0 -4.5,-7.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
    <Geometry x:Key="SliderPointedThumbMiddleBorderGeometry">M 3.5,-7.5 L -3.5,-7.5 L -3.5,4.5 L 0,8 L 3.5,4.5 Z</Geometry>
    <Style x:Key="HorizontalSliderUpThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="18"/>
    	<Setter Property="Width" Value="10"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<TransformGroup.Children>
    								<TransformCollection>
    									<RotateTransform Angle="180"/>
    									<TranslateTransform X="5" Y="9"/>
    								</TransformCollection>
    							</TransformGroup.Children>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Fill="{StaticResource HorizontalSliderThumbNormalBackgroundInverted}" x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    					<Path Stroke="White" StrokeThickness="1" x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF929292" StrokeThickness="1" x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="Foreground" Value="Blue">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbPressedBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackground" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="white" Offset="0"/>
    	<GradientStop Color="#B8E2F9" Offset="0.5"/>
    	<GradientStop Color="#B0DFF8" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackground" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#B8E4FA" Offset="0.25"/>
    	<GradientStop Color="#5EB4E3" Offset="0.5"/>
    	<GradientStop Color="#4C8BB4" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackground" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="White" Offset="0"/>
    	<GradientStop Color="#F0EFEF" Offset="0.4"/>
    	<GradientStop Color="#D6D5D5" Offset=".8"/>
    </LinearGradientBrush>
    <Style x:Key="HorizontalSliderDownThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="18"/>
    	<Setter Property="Width" Value="10"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true">
    					<Canvas.RenderTransform>
    						<TranslateTransform X="5" Y="9"/>
    					</Canvas.RenderTransform>
    					<Path Fill="{StaticResource HorizontalSliderThumbNormalBackground}" x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    					<Path Stroke="White" StrokeThickness="1" x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF929292" StrokeThickness="1" x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="Foreground" Value="Blue">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource HorizontalSliderThumbPressedBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground" Color="#FFE7EAEA"/>
    <LinearGradientBrush x:Key="HorizontalSliderTrackNormalBorder" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#FFAEB1AF" Offset="0.1"/>
    	<GradientStop Color="White" Offset=".9"/>
    </LinearGradientBrush>
    <Style x:Key="SliderRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="IsTabStop" Value="false"/>
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type RepeatButton}">
    				<Rectangle Fill="Transparent"/>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <Geometry x:Key="SliderThumbOuterBorderGeometry">M -5,-9.5 A 1 1 0 0 1 -4,-10.5 L 4,-10.5 A 1 1 0 0 1 5,-9.5 L 5,9.5 A 1 1 0 0 1 4,10.5 L -4,10.5 A 1 1 0 0 1 -5,9.5 Z</Geometry>
    <Geometry x:Key="SliderThumbMiddleBorderGeometry">M -4,-9.5 L 4,-9.5 L 4,9.5 L -4,9.5 Z</Geometry>
    <Style x:Key="HorizontalSliderThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="22"/>
    	<Setter Property="Width" Value="11"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true" RenderTransformOrigin="0.5,0.5">
    					<Canvas.RenderTransform>
    						<TranslateTransform X="5.5" Y="11"/>
    					</Canvas.RenderTransform>
    					<Path Fill="#FF000000" x:Name="Background" Data="{StaticResource SliderThumbOuterBorderGeometry}"/>
    					<Path Stroke="#FF0000FF" x:Name="InnerBorder" Data="{StaticResource SliderThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF000083" x:Name="OuterBorder" Data="{StaticResource SliderThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background">
    							<Setter.Value>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    									<GradientStop Color="#FF000000" Offset="0"/>
    									<GradientStop Color="#FF000000" Offset="1"/>
    									<GradientStop Color="#FF0000FF" Offset="0.528"/>
    								</LinearGradientBrush>
    							</Setter.Value>
    						</Setter>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background">
    							<Setter.Value>
    								<RadialGradientBrush>
    									<GradientStop Color="#FF0000FF" Offset="0"/>
    									<GradientStop Color="#FF000083" Offset="1"/>
    								</RadialGradientBrush>
    							</Setter.Value>
    						</Setter>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="#FF555555"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FF000000"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackground" EndPoint="1,0" StartPoint="0,0">
    	<GradientStop Color="white" Offset="0"/>
    	<GradientStop Color="#B8E2F9" Offset="0.5"/>
    	<GradientStop Color="#B0DFF8" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackground" EndPoint="1,0" StartPoint="0,0">
    	<GradientStop Color="#B8E4FA" Offset="0.25"/>
    	<GradientStop Color="#5EB4E3" Offset="0.5"/>
    	<GradientStop Color="#4C8BB4" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackground" EndPoint="1,0" StartPoint="0,0">
    	<GradientStop Color="White" Offset="0"/>
    	<GradientStop Color="#F0EFEF" Offset="0.4"/>
    	<GradientStop Color="#D6D5D5" Offset=".8"/>
    </LinearGradientBrush>
    <Style x:Key="VerticalSliderLeftThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="10"/>
    	<Setter Property="Width" Value="18"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<TransformGroup.Children>
    								<TransformCollection>
    									<RotateTransform Angle="90"/>
    									<TranslateTransform X="9" Y="5"/>
    								</TransformCollection>
    							</TransformGroup.Children>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Fill="{StaticResource VerticalSliderThumbNormalBackground}" x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    					<Path Stroke="White" StrokeThickness="1" x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF929292" StrokeThickness="1" x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="Foreground" Value="Blue">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
    	<GradientStop Color="white" Offset="0"/>
    	<GradientStop Color="#B8E2F9" Offset="0.5"/>
    	<GradientStop Color="#B0DFF8" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
    	<GradientStop Color="#B8E4FA" Offset="0.25"/>
    	<GradientStop Color="#5EB4E3" Offset="0.5"/>
    	<GradientStop Color="#4C8BB4" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackgroundInverted" EndPoint="0,0" StartPoint="1,0">
    	<GradientStop Color="White" Offset="0"/>
    	<GradientStop Color="#F0EFEF" Offset="0.4"/>
    	<GradientStop Color="#D6D5D5" Offset=".8"/>
    </LinearGradientBrush>
    <Style x:Key="VerticalSliderRightThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="10"/>
    	<Setter Property="Width" Value="18"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<TransformGroup.Children>
    								<TransformCollection>
    									<RotateTransform Angle="-90"/>
    									<TranslateTransform X="9" Y="5"/>
    								</TransformCollection>
    							</TransformGroup.Children>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Fill="{StaticResource VerticalSliderThumbNormalBackgroundInverted}" x:Name="Background" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    					<Path Stroke="White" StrokeThickness="1" x:Name="InnerBorder" Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF929292" StrokeThickness="1" x:Name="OuterBorder" Data="{StaticResource SliderPointedThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="Foreground" Value="Blue">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackgroundInverted}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderPointedThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="VerticalSliderTrackNormalBorder" EndPoint="1,0" StartPoint="0,0">
    	<GradientStop Color="#FFAEB1AF" Offset="0.1"/>
    	<GradientStop Color="White" Offset=".9"/>
    </LinearGradientBrush>
    <Style x:Key="VerticalSliderThumbStyle" TargetType="{x:Type Thumb}">
    	<Setter Property="Focusable" Value="false"/>
    	<Setter Property="OverridesDefaultStyle" Value="true"/>
    	<Setter Property="Height" Value="11"/>
    	<Setter Property="Width" Value="22"/>
    	<Setter Property="Foreground" Value="Gray"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Canvas SnapsToDevicePixels="true">
    					<Canvas.RenderTransform>
    						<TransformGroup>
    							<TransformGroup.Children>
    								<TransformCollection>
    									<RotateTransform Angle="90"/>
    									<TranslateTransform X="11" Y="5.5"/>
    								</TransformCollection>
    							</TransformGroup.Children>
    						</TransformGroup>
    					</Canvas.RenderTransform>
    					<Path Fill="{StaticResource VerticalSliderThumbNormalBackground}" x:Name="Background" Data="{StaticResource SliderThumbOuterBorderGeometry}"/>
    					<Path Stroke="White" StrokeThickness="1" x:Name="InnerBorder" Data="{StaticResource SliderThumbMiddleBorderGeometry}"/>
    					<Path Stroke="#FF929292" StrokeThickness="1" x:Name="OuterBorder" Data="{StaticResource SliderThumbOuterBorderGeometry}"/>
    				</Canvas>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="Foreground" Value="Blue">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbHoverBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbHoverBorder}"/>
    					</Trigger>
    					<Trigger Property="IsDragging" Value="true">
    						<Setter Property="Fill" TargetName="Background" Value="{StaticResource VerticalSliderThumbPressedBackground}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="{StaticResource HorizontalSliderThumbPressedBorder}"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Fill" TargetName="Background" Value="#FFF4F4F4"/>
    						<Setter Property="Stroke" TargetName="InnerBorder" Value="{x:Null}"/>
    						<Setter Property="Data" TargetName="OuterBorder" Value="{StaticResource SliderThumbDisabledGeometry}"/>
    						<Setter Property="Stroke" TargetName="OuterBorder" Value="#FFAEB1AF"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <Style TargetType="{x:Type Slider}">
    	<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
    	<Setter Property="Background" Value="Transparent"/>
    	<Setter Property="Foreground" Value="#FF000000"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Slider}">
    				<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    					<Grid>
    						<Grid.RowDefinitions>
    							<RowDefinition Height="Auto"/>
    							<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
    							<RowDefinition Height="Auto"/>
    						</Grid.RowDefinitions>
    						<TickBar x:Name="TopTick" Height="4" Visibility="Collapsed" Grid.Row="0" Fill="{TemplateBinding Foreground}" Placement="Top"/>
    						<TickBar x:Name="BottomTick" Height="4" Visibility="Collapsed" Grid.Row="2" Fill="{TemplateBinding Foreground}" Placement="Bottom"/>
    						<Border Margin="5,0" x:Name="TrackBackground" VerticalAlignment="center" Height="4.0" Grid.Row="1" BorderThickness="1" CornerRadius="1" Background="#FF000000" BorderBrush="#FF0000FF">
    							<Canvas Margin="-6,-1">
    								<Rectangle Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" x:Name="PART_SelectionRange" Height="4.0" Visibility="Hidden"/>
    							</Canvas>
    						</Border>
    						<Track x:Name="PART_Track" Grid.Row="1">
    							<Track.DecreaseRepeatButton>
    								<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
    							</Track.DecreaseRepeatButton>
    							<Track.IncreaseRepeatButton>
    								<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
    							</Track.IncreaseRepeatButton>
    							<Track.Thumb>
    								<Thumb x:Name="Thumb" Style="{StaticResource HorizontalSliderThumbStyle}" Background="{TemplateBinding Foreground}"/>
    							</Track.Thumb>
    						</Track>
    					</Grid>
    				</Border>
    				<ControlTemplate.Triggers>
    					<Trigger Property="TickPlacement" Value="TopLeft">
    						<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    						<Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderUpThumbStyle}"/>
    						<Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/>
    					</Trigger>
    					<Trigger Property="TickPlacement" Value="BottomRight">
    						<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    						<Setter Property="Style" TargetName="Thumb" Value="{StaticResource HorizontalSliderDownThumbStyle}"/>
    						<Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/>
    					</Trigger>
    					<Trigger Property="TickPlacement" Value="Both">
    						<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    						<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    					</Trigger>
    					<Trigger Property="IsSelectionRangeEnabled" Value="true">
    						<Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
    					</Trigger>
    					<Trigger Property="IsKeyboardFocused" Value="true">
    						<Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="BorderBrush" Value="#FF000083"/>
    	<Style.Triggers>
    		<Trigger Property="Orientation" Value="Vertical">
    			<Setter Property="Template">
    				<Setter.Value>
    					<ControlTemplate TargetType="{x:Type Slider}">
    						<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    							<Grid>
    								<Grid.ColumnDefinitions>
    									<ColumnDefinition Width="Auto"/>
    									<ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
    									<ColumnDefinition Width="Auto"/>
    								</Grid.ColumnDefinitions>
    								<TickBar x:Name="TopTick" Width="4" Visibility="Collapsed" Grid.Column="0" Fill="{TemplateBinding Foreground}" Placement="Left"/>
    								<TickBar x:Name="BottomTick" Width="4" Visibility="Collapsed" Grid.Column="2" Fill="{TemplateBinding Foreground}" Placement="Right"/>
    								<Border HorizontalAlignment="center" Margin="0,5" x:Name="TrackBackground" Width="4.0" Grid.Column="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" BorderBrush="{StaticResource VerticalSliderTrackNormalBorder}" BorderThickness="1" CornerRadius="1">
    									<Canvas Margin="-1,-6">
    										<Rectangle Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" x:Name="PART_SelectionRange" Width="4.0" Visibility="Hidden"/>
    									</Canvas>
    								</Border>
    								<Track x:Name="PART_Track" Grid.Column="1">
    									<Track.DecreaseRepeatButton>
    										<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
    									</Track.DecreaseRepeatButton>
    									<Track.IncreaseRepeatButton>
    										<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
    									</Track.IncreaseRepeatButton>
    									<Track.Thumb>
    										<Thumb x:Name="Thumb" Style="{StaticResource VerticalSliderThumbStyle}"/>
    									</Track.Thumb>
    								</Track>
    							</Grid>
    						</Border>
    						<ControlTemplate.Triggers>
    							<Trigger Property="TickPlacement" Value="TopLeft">
    								<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    								<Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderLeftThumbStyle}"/>
    								<Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/>
    							</Trigger>
    							<Trigger Property="TickPlacement" Value="BottomRight">
    								<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    								<Setter Property="Style" TargetName="Thumb" Value="{StaticResource VerticalSliderRightThumbStyle}"/>
    								<Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/>
    							</Trigger>
    							<Trigger Property="TickPlacement" Value="Both">
    								<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
    								<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
    							</Trigger>
    							<Trigger Property="IsSelectionRangeEnabled" Value="true">
    								<Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
    							</Trigger>
    							<Trigger Property="IsKeyboardFocused" Value="true">
    								<Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
    							</Trigger>
    						</ControlTemplate.Triggers>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Trigger>
    	</Style.Triggers>
    </Style>
    <Style x:Key="dialog_window" TargetType="{x:Type Window}">
    	<Setter Property="BorderBrush" Value="{DynamicResource border_brush}"/>
    	<Setter Property="BorderThickness" Value="4,4,4,4"/>
    	<Setter Property="ResizeMode" Value="NoResize"/>
    	<Setter Property="ShowInTaskbar" Value="False"/>
    	<Setter Property="Title" Value="Attention!"/>
    	<Setter Property="Topmost" Value="True"/>
    	
    </Style>
    <SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="#8C8E94"/>
    <Style TargetType="{x:Type TabControl}">
    	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    	<Setter Property="Padding" Value="4,4,4,4"/>
    	<Setter Property="BorderThickness" Value="2,2,2,2"/>
    	<Setter Property="BorderBrush" Value="{DynamicResource border_brush}"/>
    	<Setter Property="Background" Value="#FFFFFFFF"/>
    	<Setter Property="HorizontalContentAlignment" Value="Center"/>
    	<Setter Property="VerticalContentAlignment" Value="Center"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type TabControl}">
    				<Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition x:Name="ColumnDefinition0"/>
    						<ColumnDefinition Width="0" x:Name="ColumnDefinition1"/>
    					</Grid.ColumnDefinitions>
    					<Grid.RowDefinitions>
    						<RowDefinition x:Name="RowDefinition0" Height="Auto"/>
    						<RowDefinition x:Name="RowDefinition1" Height="*"/>
    					</Grid.RowDefinitions>
    					<Border x:Name="ContentPanel" Grid.Column="0" Grid.Row="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
    						<ContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_SelectedContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="SelectedContent"/>
    					</Border>
    					<TabPanel Margin="2,2,2,-1" x:Name="HeaderPanel" Grid.Column="0" Grid.Row="0" IsItemsHost="true" Panel.ZIndex="1" KeyboardNavigation.TabIndex="1"/>
    				</Grid>
    				<ControlTemplate.Triggers>
    					<Trigger Property="TabStripPlacement" Value="Bottom">
    						<Setter Property="Grid.Row" TargetName="HeaderPanel" Value="1"/>
    						<Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
    						<Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
    						<Setter Property="Height" TargetName="RowDefinition1" Value="Auto"/>
    						<Setter Property="Margin" TargetName="HeaderPanel" Value="2,-1,2,2"/>
    					</Trigger>
    					<Trigger Property="TabStripPlacement" Value="Left">
    						<Setter Property="Grid.Row" TargetName="HeaderPanel" Value="0"/>
    						<Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
    						<Setter Property="Grid.Column" TargetName="HeaderPanel" Value="0"/>
    						<Setter Property="Grid.Column" TargetName="ContentPanel" Value="1"/>
    						<Setter Property="Width" TargetName="ColumnDefinition0" Value="Auto"/>
    						<Setter Property="Width" TargetName="ColumnDefinition1" Value="*"/>
    						<Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
    						<Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
    						<Setter Property="Margin" TargetName="HeaderPanel" Value="2,2,-1,2"/>
    					</Trigger>
    					<Trigger Property="TabStripPlacement" Value="Right">
    						<Setter Property="Grid.Row" TargetName="HeaderPanel" Value="0"/>
    						<Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
    						<Setter Property="Grid.Column" TargetName="HeaderPanel" Value="1"/>
    						<Setter Property="Grid.Column" TargetName="ContentPanel" Value="0"/>
    						<Setter Property="Width" TargetName="ColumnDefinition0" Value="*"/>
    						<Setter Property="Width" TargetName="ColumnDefinition1" Value="Auto"/>
    						<Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
    						<Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
    						<Setter Property="Margin" TargetName="HeaderPanel" Value="-1,2,2,2"/>
    					</Trigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <Style x:Key="TabItemFocusVisual">
    	<Setter Property="Control.Template">
    		<Setter.Value>
    			<ControlTemplate>
    				<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="3,3,3,1" SnapsToDevicePixels="true"/>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#F3F3F3" Offset="0"/>
    	<GradientStop Color="#EBEBEB" Offset="0.5"/>
    	<GradientStop Color="#DDDDDD" Offset="0.5"/>
    	<GradientStop Color="#CDCDCD" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TabItemHotBackground" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#EAF6FD" Offset="0.15"/>
    	<GradientStop Color="#D9F0FC" Offset=".5"/>
    	<GradientStop Color="#BEE6FD" Offset=".5"/>
    	<GradientStop Color="#A7D9F5" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="TabItemSelectedBackground" Color="#F9F9F9"/>
    <SolidColorBrush x:Key="TabItemHotBorderBrush" Color="#3C7FB1"/>
    <SolidColorBrush x:Key="TabItemDisabledBackground" Color="#F4F4F4"/>
    <SolidColorBrush x:Key="TabItemDisabledBorderBrush" Color="#FFC9C7BA"/>
    <Style TargetType="{x:Type TabItem}">
    	<Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
    	<Setter Property="Foreground" Value="#FFFFFFFF"/>
    	<Setter Property="Padding" Value="6,1,6,1"/>
    	<Setter Property="BorderBrush" Value="#FF000083"/>
    	<Setter Property="Background" Value="{DynamicResource norm_button_Brush}"/>
    	<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    	<Setter Property="VerticalContentAlignment" Value="Stretch"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type TabItem}">
    				<Grid SnapsToDevicePixels="true">
    					<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="2,2,2,0" Padding="{TemplateBinding Padding}">
    						<ContentPresenter HorizontalAlignment="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" x:Name="Content" VerticalAlignment="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True"/>
    					</Border>
    				</Grid>
    				<ControlTemplate.Triggers>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsMouseOver" Value="True"/>
    							<Condition Property="Selector.IsSelected" Value="False"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="BorderBrush" TargetName="Bd" Value="#FF002AA7"/>
    					</MultiTrigger>
    					<Trigger Property="IsMouseOver" Value="true">
    						<Setter Property="Background" TargetName="Bd" Value="{DynamicResource hov_button_Brush}"/>
    					</Trigger>
    					<Trigger Property="IsSelected" Value="true">
    						<Setter Property="Panel.ZIndex" Value="1"/>
    						<Setter Property="Foreground" Value="#FF000000"/>
    						<Setter Property="Background" TargetName="Bd" Value="{DynamicResource TabItemSelectedBackground}"/>
    					</Trigger>
    					<Trigger Property="TabStripPlacement" Value="Bottom">
    						<Setter Property="BorderThickness" TargetName="Bd" Value="2,0,2,2"/>
    					</Trigger>
    					<Trigger Property="TabStripPlacement" Value="Left">
    						<Setter Property="BorderThickness" TargetName="Bd" Value="2,2,0,2"/>
    					</Trigger>
    					<Trigger Property="TabStripPlacement" Value="Right">
    						<Setter Property="BorderThickness" TargetName="Bd" Value="0,2,2,2"/>
    					</Trigger>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsSelected" Value="true"/>
    							<Condition Property="TabStripPlacement" Value="Top"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="Margin" Value="-2,-2,-2,-1"/>
    						<Setter Property="Margin" TargetName="Content" Value="0,0,0,1"/>
    					</MultiTrigger>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsSelected" Value="true"/>
    							<Condition Property="TabStripPlacement" Value="Bottom"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="Margin" Value="-2,-1,-2,-2"/>
    						<Setter Property="Margin" TargetName="Content" Value="0,1,0,0"/>
    					</MultiTrigger>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsSelected" Value="true"/>
    							<Condition Property="TabStripPlacement" Value="Left"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="Margin" Value="-2,-2,-1,-2"/>
    						<Setter Property="Margin" TargetName="Content" Value="0,0,1,0"/>
    					</MultiTrigger>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsSelected" Value="true"/>
    							<Condition Property="TabStripPlacement" Value="Right"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="Margin" Value="-1,-2,-2,-2"/>
    						<Setter Property="Margin" TargetName="Content" Value="1,0,0,0"/>
    					</MultiTrigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemDisabledBackground}"/>
    						<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemDisabledBorderBrush}"/>
    						<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <LinearGradientBrush x:Key="norm_button_Brush" EndPoint="0.5,1" StartPoint="0.5,0">
    	<GradientStop Color="#FF000000" Offset="0"/>
    	<GradientStop Color="#FF000000" Offset="1"/>
    	<GradientStop Color="#FF171717" Offset="0.525"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="hov_button_Brush" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#FF000000" Offset="0"/>
    	<GradientStop Color="#FF595959" Offset="0.5"/>
    	<GradientStop Color="#FF595959" Offset="0.459"/>
    	<GradientStop Color="#FF000000" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="preesed_button_Brush" EndPoint="0,1" StartPoint="0,0">
    	<GradientStop Color="#BBB" Offset="0.0"/>
    	<GradientStop Color="#FF000000" Offset="0.215"/>
    	<GradientStop Color="#FF000000" Offset="0.818"/>
    	<GradientStop Color="#FFBBBBBB" Offset="1.0"/>
    </LinearGradientBrush>
    <Style TargetType="{x:Type ListBoxItem}">
    	<Setter Property="Background" Value="Transparent"/>
    	<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
    	<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
    	<Setter Property="Padding" Value="2,0,0,0"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type ListBoxItem}">
    				<Border x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
    					<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    				</Border>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsSelected" Value="true">
    						<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
    						<Setter Property="Background" TargetName="Bd" Value="#FF0000A5"/>
    					</Trigger>
    					<MultiTrigger>
    						<MultiTrigger.Conditions>
    							<Condition Property="IsSelected" Value="true"/>
    							<Condition Property="Selector.IsSelectionActive" Value="false"/>
    						</MultiTrigger.Conditions>
    						<Setter Property="Background" TargetName="Bd" Value="#FF202020"/>
    					</MultiTrigger>
    					<Trigger Property="IsEnabled" Value="false">
    						<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
	<!-- Resource dictionary entries should be defined here. -->

</ResourceDictionary>